QUERY.FIND Function

Syntax

.Find([* findwhat ])

as P = .FIND( Key_Ptr as P )

as P = .FIND( Key_Value as C )

Arguments

Key_Ptr

A dot variable that contains an element named "key", which has been set to the search value.

Key_Value

A search value to compare to entries in the query list.

findwhat

*

Description

The .FIND() method finds a value in the query list and returns a pointer to the Key_Value found. The key has two properties: key and record, as illustrated below.

In both the following examples, the .FIND() method finds the nearest matching key.

dim tbl as P
dim qry as P
tbl = table.open("test")
query.filter = "ID <> ''"
query.options = "D"
qry = tbl.query_create()
? qry.find("11112-01")
= Key = "11112-01"
Record = 5

See Also